WARNING: This program has a logic error. So let's debug it!

RULE: strftime uses % to format datetime. Changing the letter or symbol after the % changes the format.

  • Click Run and look at the console to see the current date format.
  • Fix .strftime() to display a four digit year with slashes ( / ) between the month, day, and year.
  • Click Run to see if you fixed the program. When it is fixed, click Submit and Next.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)